package interface_test.b;

import interface_test.a.Base;


public class SubType extends Base {
    public void fun() {
        System.out.println(name);
        System.out.println(super.name);
        System.out.println(this.name);

        SubType subType = new SubType();
        System.out.println(subType.name);
    }


//        Base base = new Base();
//        // 无法通过父类引用使用,在父类外部
//        System.out.println(base.name);
    public static void main(String[] args) {
        new SubType().fun();
    }
}



//        Base base = new Base();
//        // 无法通过父类引用使用,在父类外部
//        System.out.println(base.name);
//        SubType subType = new SubType();
//        System.out.println(subType.name);